package com.mozq.dubbo.demo_01_consumer.web;

import com.mozq.dubbo.demo_01_interface.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author: xiechangzhou 2020/1/21 10:06
 */
public class Client {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:consumer.xml");
        context.start();
        DemoController demoService = (DemoController) context.getBean("demoController");
        String result = demoService.sayHello("刘备");
        System.out.println(result);
    }
}
